import request from '@/utils/request'
//民主测评项目接口
export function getPersonList(data) {
  return request({
    url: '/kpipersonconfig/list',
    method: 'post',
    data
  })
}

export function createPerson(data) {
  return request({
    url: '/kpipersonconfig/create',
    method: 'post',
    data
  })
}

export function updateConfig(data) {
  return request({
    url: '/kpipersonconfig/updateConfig',
    method: 'post',
    data
  })
}

export function getEvaluationInfo() {
  return request({
    url: '/kpipersonconfig/getEvaluationInfo',
    method: 'post',
  })
}

export function getEvaluationInfoByQianUserId(id) {
  return request({
    url: '/kpipersonconfig/getEvaluationInfoByQianUserId?id='+id,
    method: 'post',
  })
}

export function updatePerson(data) {
  return request({
    url: '/kpipersonconfig/update',
    method: 'put',
    data
  })
}

export function deletePerson(data) {
  return request({
    url: '/kpipersonconfig/delete',
    method: 'delete',
    data
  })
}
export function getNoPageList(data) {
  return request({
    url: '/kpipersonconfig/nopagedatelist',
    method: 'post',
    data
  })
}

